package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.ManualVipUpgradeLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ManualVipUpgradeLogDao extends JpaRepository<ManualVipUpgradeLog,Integer> {

    @Query(value = "select * from izf.manual_vip_upgrade_log where uid=:uid order by id desc limit 0,1",nativeQuery = true)
    ManualVipUpgradeLog latest(int uid);
}
